package moonteam.moonisland.utils;

import org.bukkit.ChatColor;
import org.bukkit.command.CommandSender;

import java.util.List;

/**
 * @author Administrator
 */
public class MsgUtils {

    private MsgUtils() {}

    public static void send(CommandSender player, List<String> msgList) {
        msgList.forEach((print) -> {
            player.sendMessage(ChatColor.translateAlternateColorCodes('&', print));
        });
    }

    public static void send(CommandSender player, String msg) {
        player.sendMessage(ChatColor.translateAlternateColorCodes('&', msg));
    }

}
